<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/CampsiteLease.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/CampsiteLease.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '营房租赁',
                    name: 'CampsiteLease',
                    url: "/CampsiteLease/",
                    sortName: "modifyDate",
                },
                extend: extend,
                editFormFields: {},
                editFormOptions: [],
                searchFormFields: {"houseType":"",code:"",bookingName:"",bookingPhone: ""},
                searchFormOptions: [
                    [{"title":"房型","field":"houseType",type:'like'},
                    {"title":"房编号","field":"code",type:'like'},
                    {"title":"姓名","field":"bookingName",type:'like'},
                    {"title":"手机号","field":"bookingPhone",type:'like'}]
                ],
                columns: [
                        // {field:'pics',title:'图片',type:'img',width:80,align:'left'},
                        {field:'chname',title:'营房名称',type:'string',width:110,align:'left'},
                        // {field:'name',title:'房名称',type:'string',width:90,align:'left'},
                       {field:'type',title:'营房类型',type:'int',width:90,align:'left',bind: { key: 'CampsiteHouseType', data: [] }},
                       {field:'houseType',title:'房型',type:'string',width:190,align:'left',bind: { key: 'houseType', data: [] }},
                       {field:'code',title:'房编号',type:'string',width:90,align:'left'},
                        {field:'status',title:'状态',type:'int',width:90,align:'left',bind: { key: 'CampItemStatus', data: [] }},
                        {field:'area',title:'面积',type:'string',width:90,align:'left',sortable:true},
                    //    {field:'chid',title:'campsitemanage_house_id',type:'int',width:90,align:'left'},
                       {field:'peopleNum',title:'最大人数',type:'int',width:90,align:'left'},
                       {field:'createDate',title:'创建时间',type:'datetime',width:190,align:'left',sortable:true},
                       {field:'creator',title:'创建人',type:'string',width:120,align:'left'},
                       
                       {field:'modifier',title:'修改人',type:'string',width:120,align:'left'},
                       {field:'modifyDate',title:'修改时间',type:'datetime',width:190,align:'left',sortable:true},
                       
                       {field:'remark',title:'备注',type:'string',width:220,align:'left'},],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
